package com.gcsj.controller;


import com.gcsj.service.SchoolMajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
public class SchoolMajorController {

    @Autowired

    SchoolMajorService schoolMajorService;

    @GetMapping("/yaobotest3")
    public void selectSchoolMajorBySchool() {
        System.out.println(schoolMajorService.selectSchoolMajorBySchool("3826")); };
    @GetMapping("/yaobotest4")
    public void selectSchoolMajorByMajor() {
        System.out.println(schoolMajorService.selectSchoolMajorByMajor("0201")); };
}
